package httpUtils

import (
	"bytes"
	"encoding/json"
	"fmt"
)

func OutputJson(v interface{}) {

	buf, _ := json.Marshal(v)
	var bb bytes.Buffer
	err := json.Indent(&bb, buf, "", "    ")
	if err == nil {
		fmt.Println(bb.String())
	} else {
		fmt.Println(err)
	}
}
